<?php
/**
 * Created by PhpStorm.
 * User: 33kuai
 * Date: 2020/2/4
 * Time: 21:05
 */

namespace frontend\modules\demo\controllers;


use yii\web\Controller;
use Yii;
class RequestController extends Controller
{

    public function actionIndex(){

        $request = Yii::$app->request;
        var_dump($request->remoteHost);
        var_dump($request->resolve());
        var_dump($request->method);
        var_dump($request->contentType);
        var_dump($request->eTags);die;
        var_dump($request->getAuthUser());die;
        var_dump($request->serverName);
        var_dump($request->scriptUrl);
        var_dump($request->scriptFile);
        var_dump($request->baseUrl);
        var_dump($request->queryString);
        var_dump($request->url);
        var_dump($request->hostInfo);
        var_dump($request->isGet);
        var_dump($request->isAjax);
        var_dump($request->isFlash);
        var_dump($request->isPatch);
        var_dump($request->isPut);
        var_dump($request->isDelete);
        var_dump($request->isHead);
        var_dump($request->isOptions);
        var_dump($request->isConsoleRequest);
        var_dump($request->isSecureConnection);
        var_dump($request->isPost);



        var_dump($request->pathInfo);
        var_dump($request->userIP);
        var_dump($request->ipHeaders);
        echo PHP_EOL;
        var_dump($request->userAgent);

        var_dump($request->acceptableLanguages);
        var_dump($request->absoluteUrl);
        var_dump($request->getRawBody());
        var_dump($request->acceptableContentTypes);
        var_dump($request->csrfTokenFromHeader);
        var_dump($request->referrer);
        var_dump($request->port);





        die;
    }



}